<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" pageEncoding="UTF-8"%>
<%@page import="com.ys.malini.model.TUser"%>

<%
	session.setAttribute("ctx",request.getContextPath());
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<table border="0" width="100%">
<tr><td>
<div class="main_header">
<ul><li><a href="<%=session.getAttribute("ctx")%>/productNewAction.do?op=queryTop">网站首页</a></li> 
<li><a href="<%=session.getAttribute("ctx")%>/pages/Reg.jsp">登录/注册</a></li> 
<li><a href="<%=session.getAttribute("ctx")%>/pages/shop.jsp">购物清单</a></li>  
<li><a href="<%=session.getAttribute("ctx")%>/companyAction.do?op=queryQt&compType=1">联系我们</a></li>  
<li><a href="<%=session.getAttribute("ctx")%>/roomAction.do?op=show">展厅地址</a></li> </ul>
</div>
</td>

<td align="right" valign="bottom" width="40%"> 
<%
String path=(String)session.getAttribute("ctx");
TUser user =(TUser)session.getAttribute("user");
if(user!=null){
	if("admin".equals(user.getUserPhone())){
		out.print("您好！尊敬的&nbsp;&nbsp;"+user.getUserPhone()+"&nbsp;&nbsp;用户<a href='"+path+"/pages/backstage/index.jsp'>&nbsp;&nbsp;&nbsp;&nbsp;后台管理</a>");
	}else{
		out.print("您好！尊敬的&nbsp;&nbsp;"+user.getUserPhone()+"&nbsp;&nbsp;用户");
	}

}
%>


</td></tr>
</table>

</html>